package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.UserPositionForm;
import com.springboot.cloud.demos.entity.po.User;
import com.springboot.cloud.demos.entity.po.UserPosition;
import org.springframework.stereotype.Component;

@Component
public class UserPositionServiceFallback implements UserPositionService {
    @Override
    public Result<UserPosition> query(String userId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<UserPosition> get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<User> add(UserPositionForm UserPositionForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result update(UserPositionForm UserPosition) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
